package com.chrray.position.util.result;

/**
 * @author admin
 */

public enum ResultEnum {
	SUCCESS(200,"请求成功"),
	FAIL(201,"操作失败"),
	LOGIN_SUCCESS(202,"登录成功"),
	//这个更多指参数类型不对
	BAD_REQUEST(400,"请求参数有误"),
	UNAUTHORIZED(401,"未授权"),
	FORBIDDEN(403,"没有权限访问"),
	METHOND_NOT_ALLOWED(405,"请求方式不正确"),
	REQUEST_TIMEOUT(408,"请求超时"),
	REQUEST_TOO_LONG(414,"请求的URI 长度超过了服务器能够解释的长度"),
	UNP_ENTITY(422,"请求格式正确，但是由于含有语义错误，无法响应"),
	SERVER_ERR(500,"服务器请求错误"),
	SERVER_UNAVAILABLE(503,"临时的服务器维护或者过载"),
	NO_ACCESS_TOKEN(600,"没有上传access_token"),
	ACCESS_TOKEN_TIMEOUT(601,"access_token过期"),
	ACCESS_TOKEN_INVALID(602,"无效的access_token"),
	REFRESH_TOKEN_TIMEOUT(603,"refresh_token过期"),
	REFRESH_TOKEN_INVALID(604,"无效的refresh_token"),
	//这个是参数没有上传
	MUST_PARAMETER(605,"缺少必要的参数"),
	//这个是参数没有上传
	NO_REPEART(701,"请勿重复提交"),
	//获取微信信息失败
	GET_WX_INFO_FAIL(702,"获取微信信息失败"),
	PHONE_IS_EMPTY(703,"手机号码不能为空"),
	PHONE_WRONGFUL(704,"手机号码不合法"),
	OTHER_WRONGFUL(705,"其他不合法参数"),
	PHONE_USED(706,"手机号码已经被注册"),
	CODE_ERR(707,"手机验证码不正确"),
	FORBID(708,"被禁用的"),
	NO_BIN_PHONE(709,"没有绑定"),
	NO_PHONE(710,"账号不存在"),
	PSD_ERR(711,"密码错误"),
	WX_INFO_ERR(712,"微信信息错误"),
	NO_FINSHED_INFO(713,"尚未完善资料"),
	NO_EXIS(714,"不存在"),
	EXIS(715,"存在"),
	YES(716,"是"),
	NO(717,"不是"),
	TO_MANY(718,"不能超过"),
	IF_DETERMINE(719,"请前往确认更换小区"),
	CREATE_SUCCESS(720,"统一下单成功"),
	CREATE_ORDER_SUCCESS(721,"需评估，下单成功"),

	LOGIN_NOT_ADMIN(100001,"登录账号不是系统管理账户"),
	LOGIN_USER_ERROR(100002,"用户名或密码错误"),
	LOGIN_USER_WARN(100003,"该账户已被禁用"),
	LOGIN_USER_ROLE_WARN(100015,"该账户角色已被禁用"),
	LOGIN_USER_NULL(100004,"账户名或密码不能为空"),
	USER_TOKEN_ERROR(100005,"用户token错误，请重新登录"),
	USER_TYPE_ERROR(100006,"该用户无权限访问"),
	USER_NOT_FOUND(100007,"未找到用户"),
	USER_NOT_COMMON(100008,"用户不是普通用户"),
	USER_EXIST_USER_NAME(100009,"该账号已经存在"),
	USER_EXIST_MOBILE(100010,"该手机号已经存在"),
	IMPORT_FAIL_NULL(200001,"导入文件无数据"),
    USER_CHECK_FAIL(100008,"该账户审核失败"),
    USER_NOT_ALLOW(100009,"该用户不允许登录后台"),
    REGISTER_PASSWORD_ERROR(100010,"两次密码不一致"),
    REGISTER_NAME_ERROR(100017,"公司名或手机号已经存在"),
    REGISTER_MOBILE_ERROR(100018,"手机号已经存在"),
    USER_OLD_PASSWORD_ERROR(100013,"用户旧密码输入错误"),
    USER_DELETE(100014,"该用户已被删除"),
    LOGIN_PASSWORD_ERROR_TIME(100019,"输入错误密码3次,账号锁定10分钟"),
    BAD_PASSWORD_REQUEST(100011,"请填写旧密码或新密码"),
    BAD_PASSWORD_SHORT(100012,"密码长度不能小于8"),


	EQUIPMENT_EXIST_TYPE(400001,"该设备类型已经存在"),
	EQUIPMENT_NOT_EXIST_USR(400002,"该用户下没有设备"),

    BAD_CHECK_STATUS(500011,"职位状态不为待审核"),
    CREATE_ORDER_ERROR(600011,"创建订单失败"),
    HEART_USER_ERROR(10010000,"心动人数已满"),

    REFUND_EXIT(710001,"已经发起过退款"),
    REFUND_STATUS_EXIT(710002,"订单状态不为支付成功，退款失败"),
   PK_RECORD_ERROR(810001,"对战尚未结束，请等待"),


    THIRD_KEY_ERROR(900001,"签名错误"),
	;






	ResultEnum(Integer code, String msg) {
		this.code=code;
		this.msg=msg;
	}
	private Integer code;
	private String msg;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}




}
